package com.jielihaofeng.springbootredis.controller;

import com.jielihaofeng.springbootredis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description
 * @author Johnnie Wind
 * @date 2020/11/29 19:14
 */
@RestController
@RequestMapping(value = "/redis")
public class RedisController {

    @Autowired
    RedisService redisService;

    @GetMapping(value = "/test")
    public String test(){
        redisService.test();
        return "成功";
    }

    @GetMapping(value = "/hello")
    public String hello(){
        return "hello";
    }

}
